import request from '@/utils/request'

export function getUsers(page,data) {
  return request({
    url: '/api/admin/user/list/' + page.offset + '/' + page.limit,
    method: 'post',
    data
  })
}

export function delUser(data) {
  return request({
    url: '/api/admin/user/del',
    method: 'post',
    data
  })
}

export function restPwd(data) {
  return request({
    url: '/api/admin/user/resetPwd',
    method: 'post',
    data
  })
}

export function updateUserInfo(data) {
  return request({
    url: '/api/admin/user/update',
    method: 'post',
    data
  })
}

export function getUserInfo(userId) {
  return request({
    url: '/api/admin/user/' + userId,
    method: 'get',
  })
}
